"use strict"

import request from "@/utils/request"

// 新增通讯录
export function addContacts(data){
    return request({
        url:"/business/addressBook",
        method:"post",
        data:data
    })
}

// 修改通讯录
export function updateContacts(data){
    return request({
        url:"/business/addressBook",
        method:"put",
        data:data,
    })
}

// 删除通讯录
export function delContacts(query){
    return request({
        url:"/business/addressBook",
        method:"delete",
        data:query
    })
}

// 获取通讯录管理详细信息
export function getContactsId(id){
   return request({
        url:"/business/addressBook/" + id,
        method:"get"
    })
}

// 查询通讯录管理列表
export function getContactsList(query){
    return request({
        url:"/business/addressBook/list",
        method:"get",
        params:query
    })
}